package com.qzxy.premiumhotelsystem.mapper;

import com.qzxy.premiumhotelsystem.domain.entity.VipTypes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author 14912
* @description 针对表【vip_types】的数据库操作Mapper
* @createDate 2024-09-13 22:48:27
* @Entity com.qzxy.premiumhotelsystem.domain.pojo.VipTypes
*/

@Mapper
public interface VipTypesMapper extends BaseMapper<VipTypes> {

    /**
     * 根据vipid获取vip名字
     * @param vipTypeId
     * @return
     */
    @Select("select vip_type from vip_types where vip_type_id = #{vipTypeId}")
    String getByVipTypeIdString(String vipTypeId);
}




